<Schema name="FdtFFDataTypesSchema" xmlns="urn:schemas-microsoft-com:xml-data" 
		xmlns:dt="urn:schemas-microsoft-com:datatypes" 
		xmlns:fdt="x-schema:FDTDataTypesSchema.xml">

	<AttributeType name="schemaVersion" dt:type="string" default="1.21"/>

	<!--
        Common definitions of datatypes for Fieldbus Foundation
        use name space prefix fftypes when referencing
    -->
	<!--Definition of Attributes-->
	<!-- VFD Reference according to FF-880 section 8 -->
	<AttributeType name="vfdRef" dt:type="ui4"/>
	<AttributeType name="vfdTag" dt:type="string"/>
	<AttributeType name="communicationReference" dt:type="uuid"/>
	<AttributeType name="subIndex" dt:type="ui4"/>
	<AttributeType name="versionOd" dt:type="i2"/>
	<AttributeType name="versionNumber" dt:type="bin.hex"/>
	<AttributeType name="devID" dt:type="string"/>
	<AttributeType name="ip" dt:type="string"/>
	<AttributeType name="port" dt:type="ui2"/>
	<AttributeType name="deviceIndex" dt:type="ui4"/>
	<AttributeType name="listCount" dt:type="ui4"/>
	<AttributeType name="smServiceID" dt:type="enumeration" dt:values="SmSetPDTag SmSetAddress SmClearAddress SmIdentify SmFindTagQuery SmClearAssignmentInfo SmSetAssignmentInfo"/>
	<AttributeType name="deviceType" dt:type="enumeration" dt:values="linkingDevice ioGateway hseFieldDevice h1Device"/>
	<!--Attributes of element DataLinkAddress - Denotes the Data link (DL) Addresses. see FF-822 Annex A -->
	<!-- Link designator according to FF-822 -->
	<AttributeType name="linkId" dt:type="ui2"/>
	<!-- Node designator according to FF-822 -->
	<AttributeType name="nodeId" dt:type="ui2"/>
	<!-- Selector according to FF-822 -->
	<AttributeType name="selector" dt:type="ui2"/>
	<!-- See FF-870 section 3.3.4 - FMS services and the options supported by the server-->
	<AttributeType name="fmsFeaturesSupported" dt:type="bin.hex"/>
	<!-- Management attributes -->
	<AttributeType name="smSupport" dt:type="bin.hex"/>
	<AttributeType name="macroCycleDuration" dt:type="ui4"/>
	<AttributeType name="operationalPowerup" dt:type="ui4"/>
	<AttributeType name="scheduleActivation" dt:type="ui4"/>
	<AttributeType name="timeValue" dt:type="bin.hex"/>
	<AttributeType name="domain" dt:type="bin.hex"/>
	<!-- represent parameters DEV_REV and DD_REV from the resource block-->
	<AttributeType name="deviceRevision" dt:type="ui1" />
	<AttributeType name="ddRevision" dt:type="ui1" />
	<AttributeType name="devType" dt:type="ui2" />		
	<!--Definition of Elements-->
	<!--Element DataLinkAddress - Denotes the Data link (DL) Addresses. see FF-822 Annex A -->
	<ElementType name="DataLinkAddress" content="empty" model="closed">
		<attribute type="fdt:nodeId" required="no"/>
		<attribute type="linkId" required="yes"/>
		<attribute type="nodeId" required="yes"/>
		<attribute type="selector" required="yes"/>
	</ElementType>
	<!--Element index -->
	<ElementType name="Index" content="empty" model="closed">
		<attribute type="fdt:nodeId" required="no"/>
		<attribute type="fdt:readAccess" required="no"/>
		<attribute type="fdt:writeAccess" required="no"/>
		<attribute type="fdt:index" required="yes"/>
	</ElementType>
	<!--Element SubIndex -->
	<ElementType name="SubIndex" content="empty" model="closed">
		<attribute type="fdt:nodeId" required="no"/>
		<attribute type="subIndex" required="yes"/>
	</ElementType>
	<ElementType name="IndexList" content="eltOnly" model="closed">
		<attribute type="fdt:nodeId" required="no"/>
		<attribute type="listCount" required="yes"/>
		<element type="Index" minOccurs="1" maxOccurs="*"/>
	</ElementType>
	<ElementType name="IP" content="empty" model="closed">
		<attribute type="fdt:nodeId" required="no"/>
		<attribute type="ip" required="yes"/>
		<attribute type="port" required="no"/>
	</ElementType>
	<!-- Management elements -->
	<ElementType name="VfdTag" content="empty" model="closed">
		<attribute type="fdt:nodeId" required="no"/>
		<attribute type="fdt:readAccess" required="no"/>
		<attribute type="fdt:writeAccess" required="no"/>
		<attribute type="vfdTag" required="yes"/>
	</ElementType>
	<ElementType name="VfdRef" content="empty" model="closed">
		<attribute type="fdt:nodeId" required="no"/>
		<attribute type="fdt:readAccess" required="no"/>
		<attribute type="fdt:writeAccess" required="no"/>
		<attribute type="vfdRef" required="yes"/>
	</ElementType>
	<ElementType name="OperationalPowerup" content="empty" model="closed">
		<attribute type="fdt:nodeId" required="no"/>
		<attribute type="fdt:readAccess" required="no"/>
		<attribute type="fdt:writeAccess" required="no"/>
		<attribute type="operationalPowerup" required="yes"/>
	</ElementType>
	<ElementType name="PdTag" content="empty" model="closed">
		<attribute type="fdt:nodeId" required="no"/>
		<attribute type="fdt:readAccess" required="no"/>
		<attribute type="fdt:writeAccess" required="no"/>
		<attribute type="fdt:tag" required="yes"/>
	</ElementType>
	<ElementType name="DeviceId" content="empty" model="closed">
		<attribute type="fdt:nodeId" required="no"/>
		<attribute type="fdt:readAccess" required="no"/>
		<attribute type="fdt:writeAccess" default="1" required="no"/>
		<attribute type="devID" required="yes"/>
	</ElementType>
	<ElementType name="MacrocycleDuration" content="empty" model="closed">
		<attribute type="fdt:nodeId" required="no"/>
		<attribute type="fdt:readAccess" required="no"/>
		<attribute type="fdt:writeAccess" required="no"/>
		<attribute type="macroCycleDuration" required="yes"/>
	</ElementType>
	<ElementType name="CurrentTime" content="empty" model="closed">
		<attribute type="fdt:nodeId" required="no"/>
		<attribute type="fdt:readAccess" required="no"/>
		<attribute type="fdt:writeAccess" required="no"/>
		<attribute type="timeValue" required="yes"/>
	</ElementType>
	<ElementType name="SmSupport" content="empty" model="closed">
		<attribute type="fdt:nodeId" required="no"/>
		<attribute type="fdt:readAccess" required="no"/>
		<attribute type="fdt:writeAccess" required="no"/>
		<attribute type="smSupport" required="yes"/>
	</ElementType>
	<ElementType name="VfdIdentification" content="empty" model="closed">
		<attribute type="fdt:nodeId" required="no"/>
		<attribute type="ddRevision" required="yes" />
		<attribute type="deviceRevision" required="yes" />
		<attribute type="devType" required="yes" />		
		<attribute type="fdt:manufacturerId" required="no"/>
		<attribute type="vfdTag" required="yes"/>
	</ElementType>
</Schema>
